/**
 * 作者: hxw
 * 日期: 2021-06-03 14:34:28
 * 备注: 第三方数据采集配置表
 */
package com.motu.vertx.module.utility.logsdk;

import io.vertx.core.json.JsonObject;

public class ChargePackageModel {
	protected int id; // id
	protected int type; // 类型
	protected int platform; // platform
	protected int channel; // channel
	protected String packageName; // 包名
	protected String reyunKey; // 热云key
	protected String tapdbKey; // tapdbkey
	protected String paymentType; // paymenttype
	protected byte thirdPay; // 是否开启第三方支付
	protected String redirect; // 重定位地址
	protected String adjustCode; // adjust的appcode参数
	protected String toutiaoKey; // 头条key
	protected String toutiaoUrl; // 头条url
	protected String mobKey; // 系统推送key
	protected String mobSecret; // 系统推送秘钥

	public ChargePackageModel() {
	}

	public ChargePackageModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		type = obj.containsKey("type") ? obj.getInteger("type") : 0;
		platform = obj.containsKey("platform") ? obj.getInteger("platform") : 0;
		channel = obj.containsKey("channel") ? obj.getInteger("channel") : 0;
		packageName = obj.containsKey("package_name") ? obj.getString("package_name") : "";
		reyunKey = obj.containsKey("reyun_key") ? obj.getString("reyun_key") : "";
		tapdbKey = obj.containsKey("tapdb_key") ? obj.getString("tapdb_key") : "";
		paymentType = obj.containsKey("payment_type") ? obj.getString("payment_type") : "";
		thirdPay = obj.containsKey("third_pay") ? obj.getInteger("third_pay").byteValue() : 0;
		redirect = obj.containsKey("redirect") ? obj.getString("redirect") : "";
		adjustCode = obj.containsKey("adjust_code") ? obj.getString("adjust_code") : "";
		toutiaoKey = obj.containsKey("toutiao_key") ? obj.getString("toutiao_key") : "";
		toutiaoUrl = obj.containsKey("toutiao_url") ? obj.getString("toutiao_url") : "";
		mobKey = obj.containsKey("mob_key") ? obj.getString("mob_key") : "";
		mobSecret = obj.containsKey("mob_secret") ? obj.getString("mob_secret") : "";
	}

	public int getId() {
		return id;
	}

	public int getType() {
		return type;
	}

	public int getPlatform() {
		return platform;
	}

	public int getChannel() {
		return channel;
	}

	public String getPackageName() {
		return packageName;
	}

	public String getReyunKey() {
		return reyunKey;
	}

	public String getTapdbKey() {
		return tapdbKey;
	}

	public String getPaymentType() {
		return paymentType;
	}

	public byte getThirdPay() {
		return thirdPay;
	}

	public String getRedirect() {
		return redirect;
	}

	public String getAdjustCode() {
		return adjustCode;
	}

	public String getToutiaoKey() {
		return toutiaoKey;
	}

	public String getToutiaoUrl() {
		return toutiaoUrl;
	}

	public String getMobKey() {
		return mobKey;
	}

	public String getMobSecret() {
		return mobSecret;
	}

}
